import http from "../../utils/http"

const authority = {
    // -----------------组织架构-----------------
    getAll: (data) => http.post('/organizational_structure', data),
    getPositionList: (data) => http.post('/org/position_list', data),//获取职位列表
    getPersonnelList: (data) => http.post('/org/member_list', data),//人员列表
    addPosition: (data) => http.post('/org/position_add', data),//新增职位
    editPosition: (data) => http.post('/org/member_edit', data),//编辑组织人员
    editorialPosition: (data) => http.post('/org/position_edit', data),//编辑组织职位
    positionDetail: (data) => http.post('/org/position_detail', data),//职位详情
    addOrganization: (data) => http.post('/org/org_add', data),//新增组织
    getOrgDetail: (data) => http.post('/org/org_detail', data),//获取组织详情
    editOrganization: (data) => http.post('/org/org_edit', data),//编辑组织
    getRanNum: (data) => http.post('/org/get_num_generator', data),//编号生成器
    // -------------------权限用户管理---------------- 
    getAuthList: (data) => http.post('/auth/list', data),//获取权限列表
    addAuth: (data) => http.post('/auth/add', data),//新增权限
    getAuthDetail: (data) => http.post('/auth/detail', data),//获取菜单详情 
    editAuth: (data) => http.post('/auth/edit', data),//编辑权限

    // getUserInfo: (data) => http.post('/auth/user_detail', data),//获取用户详情
    addUser: (data) => http.post('/auth/user_add', data),//新增用户
    editUser: (data) => http.post('/auth/user_update', data),//编辑用户
    // getUserRouter: (data) => http.post('/auth/user_route', data),//查看用户拥有的路有权限
    getUserRole: (data) => http.post('/auth/user_role', data),//查看用户所属的角色
    getUserMenu: (data) => http.post('/auth/role_option', data),//添加和编辑用户时，选择角色的选项
    getUserMenuTree: (data) => http.post('/auth/shop_option', data),//添加和编辑用户时，选择管家站的选项
    resetPassword: (data) => http.post('/auth/reset_user_pwd', data),//重置密码
    getUserListByOrg: (data) => http.post('/org/member_option', data),//用于获取人员选项
    getShopList: (data) => http.post('/auth/shop_name_option', data),//门店选择器(后台专用)
    // -----------------角色管理-----------------
    getRoleList: (data) => http.post('/auth/role_list', data),//获取角色列表
    getAuthOption: (data) => http.post('/auth/auth_option', data),//获取权限选项

    addRole: (data) => http.post('/auth/role_add', data),//新增角色
    editRole: (data) => http.post('/auth/role_update', data),//编辑角色
    getRoleInfo: (data) => http.post('/auth/role_detail', data),//获取角色详情
    getRoleMenu: (data) => http.post('/auth/route_option', data),//添加和编辑角色时，选择权限的选项
    // -----------------组织管理管理-----------------
    getOrgList: (data) => http.post('/org/org_list', data),//获取组织列表
    addPersonnel: (data) => http.post('/org/member_add', data),//新增人员
    // -----------------职级-----------------------
    getLevelList: (data) => http.post('/org/position_level_list', data),//获取职级列表
    addLevel: (data) => http.post('/org/position_level_add', data),//新增职级
    editLevel: (data) => http.post('/org/position_level_edit', data),//编辑职级
    getLevelInfo: (data) => http.post('/org/position_level_detail', data),//获取职级详情
    // -------------------权限用户管理----------------
    getUserList: (data) => http.post('/auth/user_list', data),//获取用户列表
    getUserInfo: (data) => http.post('/auth/user_detail', data),//获取用户详情
    addUser: (data) => http.post('/auth/user_add', data),//新增用户
    editUser: (data) => http.post('/auth/user_update', data),//编辑用户
    getUserRouter: (data) => http.post('/auth/user_auth', data),//查看用户拥有的路有权限
    getUserRole: (data) => http.post('/auth/user_role', data),//查看用户所属的角色
    getUserMenu: (data) => http.post('/auth/role_option', data),//添加和编辑用户时，选择角色的选项
    getUserMenuTree: (data) => http.post('/auth/shop_option', data),//添加和编辑用户时，选择管家站的选项
    resetPassword: (data) => http.post('/auth/reset_user_pwd', data),//重置密码
    getUserListByOrg: (data) => http.post('/org/member_option', data),//用于获取人员选项
    getUserDetail: (data) => http.post('/org/member_detail', data),//获取人员详情
    // getShopList: (data) => http.post('/auth/shop_name_option', data),//门店选择器(后台专用)
    // -----------------操作日志-----------------
    getOperationLogList: (data) => http.post('/auth/operation_log_list', data),//获取操作日志列表
}

export default authority;